﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace CSharp.Common.WindowsAPI
{
    public class WinAPIHelper
    {
        [DllImport("kernel32.dll")]
        public static extern int WinExec(string exeFilePath, int operType);

        public static void ExcuteEXE(string exeFilePath) {

            WinExec(exeFilePath, 5);
        }

        public static void ExcuteProcess(string strUrl)
        {
            System.Diagnostics.Process.Start(strUrl);
        }


    }
}
